package com.lyy.king.tools.interfaces;

import com.lyy.king.common.core.domain.Result;
import com.lyy.king.common.rpc.annotations.LearningApiInterface;
import com.lyy.king.tools.model.response.CaptchaResponse;
import com.lyy.king.tools.request.CheckCaptchaRequest;

/**
 * 验证码
 * @ClassDescription:
 * @JdkVersion: 1.8
 * @Author: cdx
 * @Created: 2024/1/7 14:32
 */
@LearningApiInterface
public interface CaptchaInterface {
    /**
     * 生成验证码
     * @return
     */
    Result<CaptchaResponse> captchaImage();

    /**
     * 检查验证码
     * @param request
     * @return
     */
    Result<Boolean> checkCaptcha(CheckCaptchaRequest request);
}
